<%@ page language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文件上传</title>
</head>
<body>
    <form action="upload.action" method="post" enctype="multipart/form-data">
        姓名：<input type="text" name="name"><br><br>
        文件：<input type="file" name="face"><br><br>
        <input type="submit" value="文件上传">
    </form>

<h2>多文件上传</h2>
    <form action="uploads.action" method="post" enctype="multipart/form-data">
        姓名：<input type="text" name="name"><br><br>
        文件：<input type="file" name="face" multiple><br><br>
        <input type="submit" value="多文件上传">
    </form>
    <h2>文件下载</h2>
    <a href="down.action?filename=aa.jpg">下载</a>

</body>
</html>
